package jasperreport;

import java.util.ArrayList;
import java.util.List;

public class User {

	public String name;
	public int age;
	public String username;
	public String password;
	public List<User> subs;
	
	public static List<User> getStudent() {
		
		List<User> student = new ArrayList<User>();
		for(int i = 0; i < 10; i++){
			
			User stu = new User("name:" + i, i, "username:" + i, "password:" + i);
			student.add(stu);
			
			List<User> users = new ArrayList<User>();
			for(int j = 0; j < 10; j++){
				
				User sub = new User("sub_name:" + j, j, "sub_username:" + j, "sub_password:" + j);
				users.add(sub);
			}
			stu.setSubs(users);
		}
		return student;
	}

	public User(){}
	
	public User(String name, String username, String password) {
		super();
		this.name = name;
		this.username = username;
		this.password = password;
	}
	
	public User(String name, int age, String username, String password) {
		super();
		this.name = name;
		this.age = age;
		this.username = username;
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public List<User> getSubs() {
		return subs;
	}

	public void setSubs(List<User> subs) {
		this.subs = subs;
	}
}
